ifneq ($(KERNELRELEASE),)
	obj-m := drv_sht.o drv_ctrb.o drv_18b20.o  
else

.PHONY: ko ko_install ko_clean

ko:
	$(MAKE) -C $(KERNELDIR) M=$(DRIVERSDOR) modules
	
ko_install:
	$(STRIP) -s $(DRIVERSDOR)/*.ko
	cp $(DRIVERSDOR)/*.ko $(INSTALLDIR)
	
ko_clean:
	@rm -f $(DRIVERSDOR)/*.o $(DRIVERSDOR)/*.mod.o $(DRIVERSDOR)/*.mod.c $(DRIVERSDOR)/*.cmd $(DRIVERSDOR)/*.symvers $(DRIVERSDOR)/*.order $(DRIVERSDOR)/*.ko
	@rm -f $(INSTALLDIR)/.ko
	
endif 
